package com.xyoto.takeawayBusiness.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * shop
 *
 * @author
 */
@Data
@ApiModel("shop")
public class Shop extends Base {

    @ApiModelProperty("用户商铺id")
    private Integer userShopId;

    @ApiModelProperty("经营品类别id")
    private Integer categoryId;

    @ApiModelProperty("商铺名称")
    private String shopName;

    @ApiModelProperty("地址")
    private String address;

    @ApiModelProperty("区域（1-一期，2-二期，3-三期，4-四期，5-校外）")
    private String area;

    @ApiModelProperty("联系人")
    private String name;

    @ApiModelProperty("联系电话")
    private String phone;

    @ApiModelProperty("头像")
    private String path;

    @ApiModelProperty("月售数（默认0）")
    private Integer mothSold;

    @ApiModelProperty("开店时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date businessTimeStart;

    @ApiModelProperty("关店时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date businessTimeEnd;

}